package guowei.gulielasticsearch.feign;

import guowei.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.ArrayList;
import java.util.List;

//根据属性id查询详细信息
@FeignClient("guliProduct")
public interface ProductFeignClient {

    @RequestMapping("/product/attr/info/{attrId}")
    public R info(@PathVariable("attrId") Long attrId);

    @RequestMapping("/product/brand/infos")
    public R brandIdsinfo(@RequestParam("brandIds") List<Long> brandIds);

    @RequestMapping("/product/category/info/{catId}")
    public R catainfo(@PathVariable("catId") Long catId);

}
